Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore D

Total Complexity 357
Dependencies 22
Dependents 24
Total lines 3,326
Lines of code 1,592
Logical lines of code 787
Comment lines 1,109
Methods 108
Properties 15

Methods 108

Method Rating Maintainability Complexity Lines of code
get_diff_meta_data_between_orders()
B
44 17 44
update()
B
43 17 40
read_multiple()
A
48 11 30
query()
A
46 10 41
backfill_post_record()
A
45 10 41
delete_meta()
A
47 10 34
delete()
A
46 9 43
get_db_rows_for_order()
A
40 7 69
init_default_taxonomies()
A
52 10 24
get_post_orders_for_ids()
A
44 8 46
persist_order_to_db()
A
49 9 28
get_order_data_for_ids_from_db()
A
44 8 43
untrash_order()
A
44 6 54
get_db_row_from_order()
A
53 8 22
set_order_props_from_data()
A
47 7 36
get_orders_type()
A
49 7 31
get_order_data_for_ids()
S
53 7 24
get_database_schema()
S
40 2 91
release_held_coupons()
S
54 6 23
clear_cached_data()
S
55 6 19
set_custom_taxonomies()
S
56 6 18
upshift_or_delete_child_orders()
S
50 5 31
save_cogs_data()
S
54 5 22
persist_save()
S
54 5 21
trash_order()
S
48 4 35
maybe_sync_order()
S
60 5 12
update_order_from_object()
S
53 4 22
maybe_create_backup_post()
S
56 4 17
set_coupon_held_keys()
S
66 5 8
update_address_index_meta()
S
64 5 8
clear_all_cached_data()
S
61 4 12
add_meta()
S
61 4 11
persist_updates()
S
57 3 17
delete_order_data_from_custom_order_tables()
S
59 3 15
should_save_after_meta_change()
S
64 4 8
get_payment_token_ids()
S
63 4 10
update_meta()
S
62 4 10
after_meta_change()
S
60 3 13
handle_order_deletion_with_sync_disabled()
S
54 2 24
persist_db_row()
S
57 2 19
get_total_refunded()
S
57 2 18
create()
S
63 3 10
generate_select_clause_for_props()
S
66 3 7
set_order_prop()
S
64 3 9
get_coupon_held_keys_for_users()
S
68 3 7
is_post_different_from_order()
S
64 3 10
get_coupon_held_keys()
S
68 3 7
join_address_table_order_query()
S
59 2 14
update_payment_token_ids()
S
60 2 13
get_all_order_column_mappings()
S
63 2 11
get_order_table_select_statement()
S
56 1 17
get_total_shipping_refunded()
S
59 1 16
get_total_tax_refunded()
S
59 1 16
set_stock_reduced()
S
69 2 7
get_recorded_sales()
S
72 2 5
get_address_table_alias()
S
79 2 3
get_cpt_data_store_instance()
S
71 2 6
maybe_backfill_post_record()
S
75 2 5
get_download_permissions_granted()
S
72 2 5
set_download_permissions_granted()
S
69 2 7
get_unpaid_orders_gmt()
S
58 1 15
get_stock_reduced()
S
72 2 5
set_recorded_sales()
S
69 2 7
migrate_post_record()
S
64 2 9
get_recorded_coupon_usage_counts()
S
72 2 5
set_recorded_coupon_usage_counts()
S
69 2 7
get_email_sent()
S
72 2 5
set_email_sent()
S
69 2 7
should_sync_order()
S
71 2 5
read_cogs_data()
S
67 2 7
set_new_order_email_sent()
S
69 2 7
filter_raw_meta_data()
S
60 1 14
get_order_id_by_order_key()
S
60 1 13
should_backfill_post_record()
S
76 1 4
update_post_meta()
S
81 1 3
read_meta()
S
75 1 4
update_order_meta()
S
76 1 4
init()
S
66 1 8
generate_select_and_join_clauses()
S
66 1 8
get_order_count()
S
71 1 5
get_addresses_table_name()
S
76 1 4
get_operational_data_table_name()
S
76 1 4
get_meta_table_name()
S
76 1 4
get_all_table_names()
S
69 1 8
get_all_table_names_with_id()
S
64 1 10
get_cache_group()
S
82 1 3
get_order_table_alias()
S
82 1 3
get_op_table_alias()
S
82 1 3
get_post_data_store_for_backfill()
S
80 1 3
get_new_order_email_sent()
S
80 1 3
get_order_stock_reduced()
S
80 1 3
set_order_stock_reduced()
S
80 1 3
get_orders()
S
75 1 4
join_operational_data_table_to_order_query()
S
67 1 9
get_unpaid_orders()
S
72 1 5
search_orders()
S
65 1 9
get_order_type()
S
75 1 4
order_exists()
S
65 1 10
read()
S
76 1 4
init_order_record()
S
67 1 8
get_orders_table_name()
S
76 1 4
migrate_meta_data_from_post_order()
S
72 1 5
get_order_data_for_ids_from_cache()
S
74 1 4
set_order_data_in_cache()
S
75 1 4
get_order_meta_select_statement()
S
68 1 7
join_billing_address_table_to_order_query()
S
79 1 3
join_shipping_address_table_to_order_query()
S
79 1 3
get_cpt_order()
S
69 1 7